package jsyf.oa.entity.wechartSec;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by 92852 on 2018/4/17.
 */
@Entity
@Table(name = "T_SEC_DEVICE_BRAND", schema = "oa", catalog = "")
public class WechartDeviceBrandEntity extends BaseEntity{
    private String name;
    private Integer sortNo;
    private Integer delFlag;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("NAME", this.getName());
        obj.put("SORT_NO", this.getSortNo());
        obj.put("DEL_FLAG", this.getDelFlag());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_SEC_DEVICE_BRAND";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("NAME", "name");
        obj.put("SORT_NO", "sortNo");
        obj.put("DEL_FLAG", "delflag");
        return obj;
    }
}
